$OpenBSD: patch-modules_pv_pv_time_c,v 1.2 2015/11/20 10:09:52 sthen Exp $
--- modules/pv/pv_time.c.orig	Fri Oct  2 15:35:19 2015
+++ modules/pv/pv_time.c	Mon Oct 19 14:00:40 2015
@@ -115,7 +115,7 @@ int pv_get_time(struct sip_msg *msg, pv_param_t *param
 	{
 		msg_set_time(msg);
 		msg_ctx_id_set(msg, &_cfgutils_msgid);
-		if(localtime_r(&msg->tval.tv_sec, &_cfgutils_ts) == NULL)
+		if(localtime_r((time_t*)&msg->tval.tv_sec, &_cfgutils_ts) == NULL)
 		{
 			LM_ERR("unable to break time to attributes\n");
 			return -1;
@@ -166,7 +166,7 @@ int pv_get_strftime(struct sip_msg *msg, pv_param_t *p
 	{
 		msg_set_time(msg);
 		msg_ctx_id_set(msg, &_cfgutils_msgid);
-		if(localtime_r(&msg->tval.tv_sec, &_cfgutils_ts) == NULL)
+		if(localtime_r((time_t*)&msg->tval.tv_sec, &_cfgutils_ts) == NULL)
 		{
 			LM_ERR("unable to break time to attributes\n");
 			return -1;
@@ -223,7 +223,7 @@ int pv_get_timef(struct sip_msg *msg, pv_param_t *para
 
 	msg_set_time(msg);
 	
-	s.s = ctime(&msg->tval.tv_sec);
+	s.s = ctime((time_t*)&msg->tval.tv_sec);
 	s.len = strlen(s.s)-1;
 	return pv_get_strintval(msg, param, res, &s, (int)msg->tval.tv_sec);
 }
